﻿using QMERP.SeedWork;

namespace QMERP.Domain.Entities
{
    /// <summary>
    /// 散镜订单详情
    /// </summary>
    public class RetailOrderDetail : Entity
    {
        /// <summary>
        /// 眼睛类型(R或L)
        /// </summary>
        public string EyeType { get; set; } = "";
        /// <summary>
        /// 度数类型
        /// </summary>
        public string DegreesType { get; set; } = "";
        /// <summary>
        /// SPH
        /// </summary>
        public int SPH { get; set; }
        /// <summary>
        /// CYL
        /// </summary>
        public int CYL { get; set; }
        /// <summary>
        /// ADD
        /// </summary>
        public int? ADD { get; set; }
        /// <summary>
        /// 直径
        /// </summary>
        public int? Diameter { get; set; }
        /// <summary>
        /// 轴位
        /// </summary>
        public int? Axis { get; set; }
        /// <summary>
        /// 瞳距
        /// </summary>
        public double? PD { get; set; }
        /// <summary>
        /// 镜高
        /// </summary>
        public int? PH { get; set; }
        /// <summary>
        /// 面弯
        /// </summary>
        public string? Base { get; set; }
        /// <summary>
        /// 中心厚度
        /// </summary>
        public double? CenterThickness { get; set; }
        /// <summary>
        /// 刀边
        /// </summary>
        public bool? KnifeSide { get; set; }
        /// <summary>
        /// 移心1
        /// </summary>
        public string? Decenter1 { get; set; }
        /// <summary>
        /// 移心2
        /// </summary>
        public double? Decenter2 { get; set; }
        /// <summary>
        /// 移心3
        /// </summary>
        public string? Decenter3 { get; set; }
        /// <summary>
        /// 移心4
        /// </summary>
        public double? Decenter4 { get; set; }
        /// <summary>
        /// 棱镜1
        /// </summary>
        public string? Prism1 { get; set; }
        /// <summary>
        /// 棱镜2
        /// </summary>
        public double? Prism2 { get; set; }
        /// <summary>
        /// 棱镜3
        /// </summary>
        public string? Prism3 { get; set; }
        /// <summary>
        /// 棱镜4
        /// </summary>
        public double? Prism4 { get; set; }
        /// <summary>
        /// 片数
        /// </summary>
        public int Qty { get; set; }
        /// <summary>
        /// 含税价格
        /// </summary>
        //public decimal TaxPrice { get; set; }
        /// <summary>
        /// 不含税价格
        /// </summary>
        //public decimal NoTaxPrice { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        //public decimal Price { get; set; }
        /// <summary>
        /// 折扣
        /// </summary>
        public int Discount { get; set; }

        /// <summary>
        /// 散镜订单Id
        /// </summary>
        public long RetailOrderId { get; set; }
        /// <summary>
        /// 合约镜种Id
        /// </summary>
        public long Contract_LensId { get; set; }
        /// <summary>
        /// 仓库Id
        /// </summary>
        public long WarehouseId { get; set; }
        /// <summary>
        /// 散镜订单
        /// </summary>
        public virtual RetailOrder? RetailOrder { get; set; }
        /// <summary>
        /// 合约镜种
        /// </summary>
        public virtual Contract_Lens? Contract_Lens { get; set; }
        /// <summary>
        /// 仓库
        /// </summary>
        public virtual Warehouse? Warehouse { get; set; }

    }
}
